package cn.rkylin.oms.base.brand.vo;

import cn.rkylin.oms.base.brand.domain.Brand;

public class BrandVO extends Brand {

    /**
     * 
     */
    private static final long serialVersionUID = -6328255417887371899L;

    /**
     * searchCondition:快速查询条件.
     */
    private String quickSearch;

    /**
     * orderBy:排序规则.
     */
    private String orderBy;

    public String getQuickSearch() {
        return quickSearch;
    }

    public void setQuickSearch(String quickSearch) {
        this.quickSearch = quickSearch;
    }

    public String getOrderBy() {
        return orderBy == null ? null : orderBy.replaceAll(".*([';]+|(--)+).*", " ");// 此字段需要防止sql注入
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

}
